home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / libs / x / xview / xview3.004 / xview3 / usr / openwin / lib / Xinitrc < prev   
Encoding:
Text File  |  1996-05-30  |  1.5 KB  |  61 lines

  1. #!/bin/sh
  2. # Xinitrc executed by openwin script to display startup logo
  3. # and restore desktop setup (saved using owplaces)
  4. # Hereby placed into public domain by Kenneth Osterberg 1993.
  5.  
  6. # Display startup logo
  7. #if [ -x $OPENWINHOME/bin/xcenter -a -f $OPENWINHOME/etc/lxxview.xbm ]; then
  8. #    $OPENWINHOME/bin/xcenter -bitcenter $OPENWINHOME/etc/lxxview.xbm && sleep 2
  9. #fi
  10. #if [ -z "$NOPAINT" ]; then
  11. #echo olvwm.PaintWorkspace: False | xrdb -merge
  12. #xv -root -quit /home/snowcat/gif/oceanflr.bmp
  13. #else
  14. #unset NOPAINT
  15. #fi
  16.  
  17. userresources=$HOME/.Xresources
  18. xviewresources=$HOME/.Xdefaults
  19. usermodmap=$HOME/.Xmodmap
  20. sysresources=$X11HOME/lib/X11/xinit/.Xresources
  21. sysmodmap=$X11HOME/lib/X11/xinit/.Xmodmap
  22.  
  23. # merge in defaults and keymaps
  24. if [ -f $sysresources ]; then
  25.     xrdb -merge $sysresources
  26. fi
  27. if [ -f $sysmodmap ]; then
  28.     xmodmap $sysmodmap
  29. fi
  30. if [ -f $userresources ]; then
  31.     xrdb -merge $userresources
  32. fi
  33. if [ -f $xviewresources ]; then
  34.     xrdb -merge $xviewresources
  35. fi
  36. if [ -f $usermodmap ]; then
  37.     xmodmap $usermodmap
  38. fi
  39.  
  40. # I *think* this might be the cause of the notorius backspace
  41. # problem.  I'm tossing it out...
  42. #
  43. # xmodmap -e "keysym BackSpace = Delete"
  44.  
  45. # Restore saved desktop settings, if any
  46. if [ -f $HOME/.openwin-init ]; then
  47.     . $HOME/.openwin-init
  48. fi
  49.  
  50. # Run .xinitrc of user if there is one
  51. if [ -x $HOME/.xinitrc ]; then
  52.     exec $HOME/.xinitrc
  53. fi
  54.  
  55. # Startup the OpenLook window manager
  56. if [ ! -z "$WINDOWMANAGER" ]; then
  57.     exec $WINDOWMANAGER -f
  58. else
  59.     exec $OPENWINHOME/bin/olwm -f
  60. fi
  61.